﻿using System;
using System.Windows.Forms;

namespace WoSoft.PACS.Win
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>

        public static string yymc = "";//医院名称
        public static bool sfzc = false;//是否注册
        public static string yhmc = "";//登录用户

        //当前登录用户
        public static WoSoft.PACS.Data.Models.UserAccountModel CurrentLoginUser { get; set; }

        [STAThread]
        static void Main()
        {

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            //Application.Run(new WoSoft.PACS.Win.MyControlsNew.FrmCaptureNew());
            //Application.Run(new FrmMain(null));


            FrmLogin login = new FrmLogin();
            if (login.ShowDialog() == DialogResult.OK)
            {
                var user = login.LoginUser;
                CurrentLoginUser = user;
                Application.Run(new FrmMain(user));
            }
            
        }
    }
}
